/*
 * @Descripttion: 质检单接口
 * @version: V1.0
 * @Author: GaoWei
 * @Date: 2021-07-20 11:41:13
 * @LastEditors: GaoWei
 * @LastEditTime: 2021-07-20 11:42:51
 */
import { axios } from '../../utils/request'

const api = {
    save: '/qualityCheckMain/save',//保存
    submit: '/qualityCheckMain/submit',//提交
    examine: '/qualityCheckMain/examine',//审核
    delete: '/qualityCheckMain/delete',//删除
    getcode: '/qualityCheckMain/getCode',//获取单据编号
}

/**
 * 保存
 */
export function save(data) {
    return axios({
        url: api.save,
        method: "post",
        data: data
    })
}

/**
 * 提交
 */
 export function submitOrder (data) {
    return axios({
        url: api.submit,
        method: "get",
        params: data
    })
}
/**
 * 审核
 */
export function examine(data) {
    return axios({
        url: api.examine,
        method: "get",
        params: data
    })
}

/**
 * 删除
 */
export function remove(data) {
    return axios({
        url: api.delete,
        method: "DELETE",
        params: data
    })
}

/**
 * 获取单据编号
 */
export function getCode(data) {
    return axios({
        url: api.getcode,
        method: "get",
        params: data
    })
}
